package vd.cloud.com.controllers;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by VIET on 3/10/2015.
 */
@Controller
@RequestMapping("/home")
public class HomeController {

    private static final Logger logger = Logger.getLogger(HomeController.class);

    @RequestMapping(method = RequestMethod.GET)
    public String getHome(){
        if(logger.isDebugEnabled()){
            logger.debug("Home page!");
        }
        return "index";
    }
}
